﻿
<UserControl x:Class="SQLServerOptimizer.PL.WPF.IssuesReportControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:viewer="clr-namespace:Microsoft.Reporting.WinForms;assembly=Microsoft.ReportViewer.WinForms"
             mc:Ignorable="d"
			 xmlns:s="clr-namespace:System;assembly=mscorlib" Name="IssueControl"
             xmlns:sys="clr-namespace:System;assembly=mscorlib" 
             Loaded="UserControl_Loaded" d:DesignHeight="450" d:DesignWidth="750">

    <Grid >
        <Grid.RowDefinitions>


        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
    

            <ColumnDefinition Width="*"/>
          
        </Grid.ColumnDefinitions>
        <Grid Visibility="Hidden" Width="0" Height="0" >
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
               <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*"/>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
               
                <ColumnDefinition Width="20" />
            </Grid.ColumnDefinitions>
            <Button 
    		HorizontalAlignment="Left" 
    		 VerticalAlignment="Top"
    		x:Name="btnLoad" 
           Grid.Row="1" Grid.Column="1"
                 Height="34"
    		Width="37" Background="#FF7CDDFD"  
    		ToolTip="Refresh Results" RenderTransformOrigin="1.457,0.529" d:LayoutOverrides="HorizontalAlignment" Margin="20,0,0,0">
                
                <Image  Width="32" Height="22" Source="Images\refresh.png"  />
            </Button>

            <Label Content="Instance" HorizontalAlignment="Left" 
               Foreground="White" FontSize="9.333" Grid.Row="2" d:LayoutOverrides="Height" Background="#00000000"/>
            <Label Content="Database" Grid.Row="3" Foreground="White" FontSize="9.333" HorizontalAlignment="Left" d:LayoutOverrides="Height" Background="#00000000" />
            <Label Content="Severity" FontSize="9.333" Foreground="White" x:Name="label1" Grid.Row="4" HorizontalAlignment="Left" Height="20.065" VerticalAlignment="Top" Background="#00000000" />
            <Label Content="Expand" FontSize="9.333" Foreground="White"  x:Name="lblExpand" Grid.Row="5" HorizontalAlignment="Left" Height="20.065" VerticalAlignment="Top"  />

            <ComboBox 
          
            x:Name="combobox_servicefilter" SelectionChanged="combobox_servicefilter_SelectionChanged" 
            Grid.Row="2" 
            d:LayoutOverrides="VerticalAlignment" Grid.Column="1" />

            <ComboBox 
    	
    		x:Name="combobox_databasefilter" 
    		SelectionChanged="combobox_databasefilter_SelectionChanged" 
    		Grid.Row="3" Grid.Column="1"   />

            <ComboBox 
    		x:Name="combobox_Severity"
    	
    		SelectedIndex="0"
    		SelectionChanged="combobox_Severity_SelectionChanged"  
            Background="White" 
            Grid.Row="4"  Grid.Column="1">
                <sys:String>All</sys:String>
                <sys:String>High</sys:String>
                <sys:String>Med</sys:String>
                <sys:String>Low</sys:String>


            </ComboBox>

            <ComboBox 
    		x:Name="combobox_Expand"
    	 Grid.Row="5"  Grid.Column="1" 
    		SelectedIndex="0" Background="White" SelectionChanged="combobox_Expand_SelectionChanged" >
                <sys:String>None</sys:String>
                <sys:String>Instances</sys:String>
                <sys:String>Issues</sys:String>
            </ComboBox>
            <Label Content="Issues" Height="55" HorizontalAlignment="Left"  Name="label2" VerticalAlignment="Top" Grid.ColumnSpan="2" FontSize="32" Width="269" Foreground="White" FontFamily="Trebuchet MS" />
        </Grid>
        <DockPanel Grid.Column="1" LastChildFill="True">
        
        	<Label Content="SQL Server Issues" DockPanel.Dock="Top"  x:Name="label3" FontWeight="Bold" FontSize="16" Foreground="White" />
       	<Border
        		BorderBrush="Black"
        		BorderThickness="1"
        		CornerRadius="0"
      
    >
        		<Grid Grid.Column="1" Grid.Row="1">
        			<Border BorderBrush="Black"   x:Name="mask"  Background="White" CornerRadius="0" />

                       
        			<WindowsFormsHost x:Name="wfh_rptIssues"   LayoutError="wfh_rptIssues_LayoutError" Background="Transparent" Margin="5">
        				<WindowsFormsHost.OpacityMask>
        					<VisualBrush Visual="{Binding ElementName=mask}"/>
        				</WindowsFormsHost.OpacityMask>
        				<viewer:ReportViewer  ProcessingMode="Local" Name="rptIssues"  BorderStyle="None"   />
        			</WindowsFormsHost>
                   
        		</Grid>
        	</Border>
	    </DockPanel>
    </Grid>

</UserControl>
